<form accept-charset="utf-8" method="post" enctype="multipart/form-data" id="frm">
    <aside class="right-side">
        <!-- BEGIN: Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <small>Danh sách menu website</small>
            </h1>
            <?php $this->load->view('admin/breadbrumb') ?>
        </section>
        <!-- END: Content Header (Page header) -->

        <!-- BEGIN: Main content -->
        <section class="content">
            <div class="box box-primary">
                <!-- BEGIN: Box-Header -->
                <div class="box-header">
                    <i class="fa fa-sitemap"></i>
                    <h3 class="box-title">Danh sách menu website</h3>

                    <div class="pull-right box-tools">
                        <a href="<?php echo base_url('admin/category-list/add'); ?>" class="btn btn-primary btn-sm" title="Thêm Menu Admin">
                            <i class="fa fa-plus"></i>
                            <span>Thêm</span>
                        </a>
                    </div>
                </div>
                <!-- END: Box-Header -->

                <!-- BEGIN: Box-Table-->
                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>Tên danh mục</th>
                                <th class="text-left">Alias</th>
                                <th class="text-center">Thiết lập</th>
                            </tr>
                        </thead>
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                            <!--begin trinh bay cap menu cap 2-->
                            <?php
                            if (!empty($category_list)) {
                                for ($i = 0; $i < count($category_list); $i++) {
                                    ?>
                                    <tr class="<?php echo $category_list[$i]['status'] == 'inactive' ? 'effect-hide' : '' ?>" >
                                        <td class="cate-c<?php echo $category_list[$i]['level'] + 1 ?>">
                                            <a href="#" class="title_sum">
                                                <i class="fa <?php echo $category_list[$i]['level'] + 1 > 2 ? "" : 'fa-angle-down' ?> "></i>
                                                <span><?php echo $category_list[$i]['name'] ?></span>
                                            </a>
                                        </td>
                                        <td><span><?php echo $category_list[$i]['friendly_url'] ?></span></td>
                                        <td class="text-center">
                                            <span>
                                                <a href="<?php echo base_url('admin/category-list/edit/' . $category_list[$i]['id']); ?>" class="btn btn-sm btn-primary" title="Cập nhập [Giới thiệu]" data-original-title="Cập nhập Giới thiệu"><i class="fa fa-edit"></i></a>
                                                <a href="#" onclick="submiDeleteForm('<?php echo base_url('admin/category-list/delete/' . $category_list[$i]['id']); ?>', 'frm');" class="btn btn-sm btn-danger" title="Bỏ vào thùng rác" data-original-title="Bỏ vào thùng rác"><i class="fa fa-trash-o"></i></a>
                                                <a href="<?php echo base_url('admin/category-list/show/' . $category_list[$i]['id']); ?>" class="btn btn-sm btn-warning" title="Hiển thị" data-original-title="Hiển thị"><i class="fa fa-eye"></i></a>
                                            </span>
                                        </td>
                                    </tr>                                    
                                    <?php
                                }
                            }
                            ?>                            
                        </tbody>
                    </table>
                </div>
                <!-- END: Box-Table-->

                <!-- BEGIN: Box-Footer -->
                <div class="box-footer">
                    <button class="btn btn-default disabled">Tổng cộng: <?php echo !empty($category_list) ? count($category_list) : '' ?> Danh mục</button>
                </div>
                <!-- END: Box-Footer -->
            </div>
        </section>
        <!-- END: Main content -->
    </aside>
    <!-- /.right-side -->
</form>